package com.diamond.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.text.DecimalFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Diamond entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "diamond", catalog = "diamond")
public class Diamond implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = -826307063598327662L;
	private Long diamondId;
	private String batch;
	private Double weight;
	private String pic;
	private String pic1;
	private Double supPrice;
	private Double midPrice;
	private Double buyPrice;
	private Double spePrice;
	private String shape;
	private String color;
	private String clarity;
	private String finalCut;
	private String polish;
	private String symmetry;
	private String cutAppraisal;
	private String polishAppraisal;
	private String symmetryAppraisal;
	private String fluor;
	private String reportNo;
	private String lab;
	private String certificateLink;
	private String appraisalDate;
	private String totalDepth;
	private String tableWidth;
	private String crownHeight;
	private String pavilionDepth;
	private String girdleThickness;
	private String culet;
	private String comments;
	private String HR;
	private String supplierName;

	// Constructors

	/** default constructor */
	public Diamond() {
	}

	/** minimal constructor */
	public Diamond(Long diamondId) {
		this.diamondId = diamondId;
	}

	/** full constructor */
	public Diamond(Long diamondId, String batch, Double weight,
			String pic, String pic1, Double supPrice, Double midPrice,
			Double buyPrice, Double spePrice, String shape, String color,
			String clarity, String finalCut, String polish, String symmetry,
			String cutAppraisal, String polishAppraisal,
			String symmetryAppraisal, String fluor, String reportNo,
			String lab, String certificateLink, String appraisalDate,
			String totalDepth, String tableWidth, String crownHeight,
			String pavilionDepth, String girdleThickness, String culet,
			String comments, String HR, String supplierName) {
		this.diamondId = diamondId;
		this.batch = batch;
		this.weight = weight;
		this.pic = pic;
		this.pic1 = pic1;
		this.supPrice = supPrice;
		this.midPrice = midPrice;
		this.buyPrice = buyPrice;
		this.spePrice = spePrice;
		this.shape = shape;
		this.color = color;
		this.clarity = clarity;
		this.finalCut = finalCut;
		this.polish = polish;
		this.symmetry = symmetry;
		this.cutAppraisal = cutAppraisal;
		this.polishAppraisal = polishAppraisal;
		this.symmetryAppraisal = symmetryAppraisal;
		this.fluor = fluor;
		this.reportNo = reportNo;
		this.lab = lab;
		this.certificateLink = certificateLink;
		this.appraisalDate = appraisalDate;
		this.totalDepth = totalDepth;
		this.tableWidth = tableWidth;
		this.crownHeight = crownHeight;
		this.pavilionDepth = pavilionDepth;
		this.girdleThickness = girdleThickness;
		this.culet = culet;
		this.comments = comments;
		this.HR = HR;
		this.supplierName = supplierName;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "diamond_id", unique = true, nullable = false)
	public Long getDiamondId() {
		return this.diamondId;
	}

	public void setDiamondId(Long diamondId) {
		this.diamondId = diamondId;
	}

	@Column(name = "batch", length = 500)
	public String getBatch() {
		return this.batch;
	}

	public void setBatch(String batch) {
		this.batch = batch;
	}

	@Column(name = "weight", precision = 22, scale = 0)
	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}
	
	@Column(name = "pic", length = 500)
	public String getPic() {
		return this.pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	@Column(name = "pic1", length = 500)
	public String getPic1() {
		return this.pic1;
	}

	public void setPic1(String pic1) {
		this.pic1 = pic1;
	}

	@Column(name = "sup_price", precision = 22, scale = 0)
	public Double getSupPrice() {
		return this.supPrice;
	}

	public void setSupPrice(Double supPrice) {
		this.supPrice = supPrice;
	}

	@Column(name = "mid_price", precision = 22, scale = 0)
	public Double getMidPrice() {
		return this.midPrice;
	}

	public void setMidPrice(Double midPrice) {
		this.midPrice = midPrice;
	}

	@Column(name = "buy_price", precision = 22, scale = 0)
	public Double getBuyPrice() {
		return this.buyPrice;
	}

	public void setBuyPrice(Double buyPrice) {
		this.buyPrice = buyPrice;
	}

	@Column(name = "spe_price", precision = 22, scale = 0)
	public Double getSpePrice() {
		return this.spePrice;
	}

	public void setSpePrice(Double spePrice) {
		this.spePrice = spePrice;
	}

	@Column(name = "shape", length = 500)
	public String getShape() {
		return this.shape;
	}

	public void setShape(String shape) {
		this.shape = shape;
	}

	@Column(name = "color", length = 500)
	public String getColor() {
		return this.color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	@Column(name = "Clarity", length = 500)
	public String getClarity() {
		return this.clarity;
	}

	public void setClarity(String clarity) {
		this.clarity = clarity;
	}

	@Column(name = "final_cut", length = 500)
	public String getFinalCut() {
		return this.finalCut;
	}

	public void setFinalCut(String finalCut) {
		this.finalCut = finalCut;
	}

	@Column(name = "polish", length = 500)
	public String getPolish() {
		return this.polish;
	}

	public void setPolish(String polish) {
		this.polish = polish;
	}

	@Column(name = "symmetry", length = 500)
	public String getSymmetry() {
		return this.symmetry;
	}

	public void setSymmetry(String symmetry) {
		this.symmetry = symmetry;
	}

	@Column(name = "cut_appraisal", length = 500)
	public String getCutAppraisal() {
		return this.cutAppraisal;
	}

	public void setCutAppraisal(String cutAppraisal) {
		this.cutAppraisal = cutAppraisal;
	}

	@Column(name = "polish_appraisal", length = 500)
	public String getPolishAppraisal() {
		return this.polishAppraisal;
	}

	public void setPolishAppraisal(String polishAppraisal) {
		this.polishAppraisal = polishAppraisal;
	}

	@Column(name = "symmetry_appraisal", length = 500)
	public String getSymmetryAppraisal() {
		return this.symmetryAppraisal;
	}

	public void setSymmetryAppraisal(String symmetryAppraisal) {
		this.symmetryAppraisal = symmetryAppraisal;
	}

	@Column(name = "fluor", length = 500)
	public String getFluor() {
		return this.fluor;
	}

	public void setFluor(String fluor) {
		this.fluor = fluor;
	}

	@Column(name = "report_no", length = 500)
	public String getReportNo() {
		return this.reportNo;
	}

	public void setReportNo(String reportNo) {
		this.reportNo = reportNo;
	}

	@Column(name = "lab", length = 500)
	public String getLab() {
		return this.lab;
	}

	public void setLab(String lab) {
		this.lab = lab;
	}

	@Column(name = "certificate_link", length = 500)
	public String getCertificateLink() {
		return this.certificateLink;
	}

	public void setCertificateLink(String certificateLink) {
		this.certificateLink = certificateLink;
	}

	@Column(name = "appraisal_date", length = 500)
	public String getAppraisalDate() {
		return this.appraisalDate;
	}

	public void setAppraisalDate(String appraisalDate) {
		this.appraisalDate = appraisalDate;
	}

	@Column(name = "total_depth", length = 500)
	public String getTotalDepth() {
		return this.totalDepth;
	}

	public void setTotalDepth(String totalDepth) {
		this.totalDepth = totalDepth;
	}

	@Column(name = "table_width", length = 500)
	public String getTableWidth() {
		return this.tableWidth;
	}

	public void setTableWidth(String tableWidth) {
		this.tableWidth = tableWidth;
	}

	@Column(name = "crown_height", length = 500)
	public String getCrownHeight() {
		return this.crownHeight;
	}

	public void setCrownHeight(String crownHeight) {
		this.crownHeight = crownHeight;
	}

	@Column(name = "pavilion_depth", length = 500)
	public String getPavilionDepth() {
		return this.pavilionDepth;
	}

	public void setPavilionDepth(String pavilionDepth) {
		this.pavilionDepth = pavilionDepth;
	}

	@Column(name = "girdle_thickness", length = 500)
	public String getGirdleThickness() {
		return this.girdleThickness;
	}

	public void setGirdleThickness(String girdleThickness) {
		this.girdleThickness = girdleThickness;
	}

	@Column(name = "culet", length = 500)
	public String getCulet() {
		return this.culet;
	}

	public void setCulet(String culet) {
		this.culet = culet;
	}

	@Column(name = "comments", length = 500)
	public String getComments() {
		return this.comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	@Column(name = "h_r", length = 500)
	public String getHR() {
		return this.HR;
	}

	public void setHR(String HR) {
		this.HR = HR;
	}

	@Column(name = "supplier_name", length = 500)
	public String getSupplierName() {
		return this.supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

}